package com.util.memcached;

import java.util.Map;

public interface CacheUtil {
	
	public boolean keyExists(String key);
	
	public <T> T get(String key);
	
	public boolean set(String key, Object value);
	
	public boolean set(String key, Object value, int expiredTime);
	
	public boolean delete(String key);
	
	public boolean deleteAll();

	public Map<String, String> getAllItems();

}
